<head>
    <script language="javascript">
        function checkValue() {
            if (document.doimatkhau.txtmatkhaumoi1.value == "" || document.doimatkhau.txtmatkhaumoi2.value == "" || document.doimatkhau.txtmatkhauht.value == "") {
                alert("Xin nhập đầy đủ vào các mục!");
                return false;
            }
            if (document.doimatkhau.txtmatkhaumoi1.value != document.doimatkhau.txtmatkhaumoi2.value) {
                alert("Mật khẩu xác nhận không đúng!");
                return false;
            }
            return true;
        }
        function empty() {
            document.doimatkhau.txtmatkhaumoi1.value = "";
            document.doimatkhau.txtmatkhaumoi2.value = "";
            document.doimatkhau.txtmatkhauht.value = ""
        }
    </script>
</head>
<link href="/htqlmba/libraries/css/capnhatdv.css" type="text/css" rel="stylesheet">
<body>
    <div class="min-height">
        <form name="doimatkhau"  method="POST" >
            <table align="center" class="TableField2" width="460" border="0">
                <tr>
                    <td align=center class="TableHeader1"> &equiv; ĐỔI MẬT KHẨU</td>
                </tr>
                <tr >
                    <td bgcolor="#dae9f3">
                        <table width="360" border="0" align="center">
                            <tr>
                                <td height="5px" colspan="2">&nbsp;</td>
                            </tr>
                            <!--Sua tai day: them vao-->
                            <tr>
                                <td width="120" align="right" class="TableField2">Mật khẩu hiện tại: </td>
                                <td width="200" align="center"><input name="txtmatkhauht" type="password" id="txtmatkhauht" size="30"></td>
                            </tr>
                            <!--Het sua-->
                            <tr>
                                <td width="120" align="right" class="TableField2">Mật khẩu mới: </td>
                                <td width="200" align="center"><input name="txtmatkhaumoi1" type="password" id="txtmatkhaumoi1" size="30"></td>
                            </tr>
                            <tr>
                                <td class="TableField2" align="right">Nhập lại :</td>
                                <td align="center"><input name="txtmatkhaumoi2" type="password" id="txtmatkhaumoi2" size="30"></td>
                            </tr>
                            <tr>
                                <td height="5px" colspan="2">&nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <input name="btnluulai" type="submit" value="Lưu lại" class="btn" onClick="return checkValue();">
                                    &nbsp;&nbsp;
                                    <input name="btnhuybo" type="button"  value="Hủy bỏ" class="btn" onClick="empty();">
                                </td>
                            </tr>
                        </table></td>
                </tr>
            </table>

        </form>
    </div>

</body>

